<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@page import="java.util.ArrayList"%>
<%@page import="projectodedalo.modelo.Estado"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script src="js/jquery-1.10.2.js"></script>
<script src="js/bootstrap-3.1.1.js"></script>

<link href="css/bootstrap-3.1.1.css" rel="stylesheet">
<link href="css/bootstrap-theme-3.1.1.css" rel="stylesheet">
<link href="css/offcanvas.css" rel="stylesheet">
</head>
<body>
	<jsp:include page="cabecera.jsp" flush="true" />
	<form method="post" action="PlantillaServlet">
		<div class="navbar navbar-default navbar-static-top">
			<div class="container">
				<div class="panel panel-default">
					<div class="panel-heading" style="font-size: 18px">
						<b>Mostrar Estados:</b>
					</div>
					<div class="panel-body">
						<div class="row">
							<div class="col-md-5">
								<div class="input-group input-group-lg">
									<span class="input-group-addon">Estado: </span>
								</div>
							</div>
							<div class="col-md-3">
								<input type="submit" value="Cargar" />
							</div>
						</div>
						<div class="row">
							<div class="col-md-8">

								<%
									ArrayList<Estado> beanestado = (ArrayList<Estado>) request
											.getAttribute("listado");
									if (beanestado != null) {
										out.println("<table>");
										for (Estado muestraEstado : beanestado) {
											out.println("<tr>");
											out.println("<td>" + muestraEstado.getcCodEstado()
													+ "</td> ");
											out.println("<td>" + muestraEstado.getcDesEstado()
													+ "</td> ");
											out.println("</tr>");
										}
										out.println("</table>");
									}
								%>

							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</form>
</body>
</html>